Optimal. Leaf size=34 \[ -\frac {a (A+B) \log (1-\sin (c+d x))}{d}-\frac {a B \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.074, Rules used = {2836, 43} \[ -\frac {a (A+B) \log (1-\sin (c+d x))}{d}-\frac {a B \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 2836
Rubi steps
\begin {align*} \int \sec (c+d x) (a+a \sin (c+d x)) (A+B \sin (c+d x)) \, dx &=\frac {a \operatorname {Subst}\left (\int \frac {A+\frac {B x}{a}}{a-x} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {a \operatorname {Subst}\left (\int \left (-\frac {B}{a}+\frac {A+B}{a-x}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac {a (A+B) \log (1-\sin (c+d x))}{d}-\frac {a B \sin (c+d x)}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 68, normalized size = 2.00 \[ \frac {a A \tanh ^{-1}(\sin (c+d x))}{d}-\frac {a A \log (\cos (c+d x))}{d}-\frac {a B \sin (c+d x)}{d}+\frac {a B \tanh ^{-1}(\sin (c+d x))}{d}-\frac {a B \log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.84, size = 31, normalized size = 0.91 \[ -\frac {{\left (A + B\right )} a \log \left (-\sin \left (d x + c\right ) + 1\right ) + B a \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.17, size = 114, normalized size = 3.35 \[ \frac {{\left (A a + B a\right )} \log \left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right ) - 2 \, {\left (A a + B a\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {A a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, B a \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + A a + B a}{\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.36, size = 47, normalized size = 1.38 \[ -\frac {a \ln \left (\sin \left (d x +c \right )-1\right ) A}{d}-\frac {a B \sin \left (d x +c \right )}{d}-\frac {a \ln \left (\sin \left (d x +c \right )-1\right ) B}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 29, normalized size = 0.85 \[ -\frac {{\left (A + B\right )} a \log \left (\sin \left (d x + c\right ) - 1\right ) + B a \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 35, normalized size = 1.03 \[ -\frac {\ln \left (\sin \left (c+d\,x\right )-1\right )\,\left (A\,a+B\,a\right )}{d}-\frac {B\,a\,\sin \left (c+d\,x\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int A \sec {\left (c + d x \right )}\, dx + \int A \sin {\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int B \sin {\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx + \int B \sin ^{2}{\left (c + d x \right )} \sec {\left (c + d x \right )}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________